package com.luxondata.module.masterdata.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import com.luxondata.module.masterdata.entry.Product;


public interface ProductRepository extends JpaRepository<Product, Long>, JpaSpecificationExecutor<Product>{

	@Query("select product from Product product where product.name like %?1%")
	List<Product> findByName(String name);
	
	@Query("select product from Product product where product.number like %?1%")
	List<Product> findByNumber(String number);
	
	List<Product> findByStatus(int status);
	
	
	
}
